package cn.edu.scau.cmi.dengshixin.composite.safe;

import cn.edu.scau.cmi.dengshixin.composite.Component;
import javafx.scene.control.TextArea;

public class SafePerson extends Component {

	public SafePerson(String name) {
		this.name = name;
		this.organization = null;
	}
	
	public SafePerson(String name, String organization) {
		this.name = name;
		this.organization = organization;
	}
	
	public void doSomething(TextArea textArea) {
		textArea.appendText("\t" + this.name + "为[" + this.organization + "]部门做贡献！\n");
	}

	
}
